package com.qyhl.school.school.vlog.theme.detail;


import com.qyhl.webtv.commonlib.entity.school.SchoolVlogThemeDetailBean;

public class SchoolVlogThemeDetailPresenter implements SchoolVlogThemeDetailContract.SchoolVlogThemeDetailPresenter {
    private SchoolVlogThemeDetailContract.SchoolVlogThemeDetailView mView;
    private SchoolVlogThemeDetailModel mModel;

    public SchoolVlogThemeDetailPresenter(SchoolVlogThemeDetailContract.SchoolVlogThemeDetailView mView) {
        this.mView = mView;
        this.mModel = new SchoolVlogThemeDetailModel(this);
    }

    @Override
    public void getDetail(int tagId, int lastBoost, int lastId) {
        mModel.getDetail(tagId,lastBoost,lastId);
    }

    @Override
    public void setDetail(SchoolVlogThemeDetailBean bean, boolean isMore) {
        mView.setDetail(bean,isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg,isMore);
    }
}
